package Animal_And_Interface;

public class Animal {
    public String name;
    public Animal(String name){
        this.name = name;
    }
    public static void play(Animal a){
        System.out.println(a.name + "正在玩耍！");
    }
    public void eatFood() {
        System.out.println(this.name + "正在吃饭！");
    }
    public void drinkWater(){
        System.out.println(this.name + "正在喝水");
    }
}



